package hashcode;

import java.util.HashMap;

public class HashTest {

    /**
     * 
     * @param args
     */
    public static void main(String[] args) {

        HashMap<Element, Figureout> h2 = new HashMap<Element, Figureout>();

        for (int i = 0; i < 10; i++) {
            h2.put(new Element(i), new Figureout());
        }
        Element test = new Element(5);

        if (h2.containsKey(test))
            System.out.println((Figureout) h2.get(test));
        else
            System.out.println("Not found");
    }

}
